﻿<html>
	<head>
		<style type="text/css">
			BODY > DIV{
				margin:16px;
				height:350px;
				overflow-y:scroll;
				border:2px solid black;
			}
		</style>

		<script type="text/javascript" src="Scripts/netProxy.js"></script>
		<script type="text/javascript">
		    // Retrieve http://google.com
		    var googleProxy = new netProxy("netProxy.aspx");
		    googleProxy.onreadystatechange = function () {
		        if (googleProxy.readyState == 4)
		            document.getElementById('googleContent').innerHTML = googleProxy.responseText;
		    };
		    googleProxy.open("GET", "http://google.com", true);
		    googleProxy.send();

		    // Retrieve http://bertjohnson.net
		    var bertJohnsonNetProxy = new netProxy("netProxy.aspx");
		    bertJohnsonNetProxy.onreadystatechange = function () {
		        if (bertJohnsonNetProxy.readyState == 4)
		            document.getElementById('bertJohnsonNetContent').innerHTML = bertJohnsonNetProxy.responseText;
		    };
		    bertJohnsonNetProxy.open("GET", "http://bertjohnson.net", true);
		    bertJohnsonNetProxy.send();
		</script>
	</head>
	<body>
		<h2>http://google.com/</h2>
		<div id='googleContent'>
		</div>

		<h2>http://bertjohnson.net/</h2>
		<div id='bertJohnsonNetContent'>
		</div>
	</body>
</html>